import cv2

img = cv2.imread("C:/Users/shouw/Desktop/tmp/help/test.jpg")
cv2.imshow('test', img)
height, width = img.shape[:2]
print(height, width)
res = cv2.resize(img, (2*width, 2*height), interpolation=cv2.INTER_CUBIC)
print(res.shape)
print(res.dtype)
k = cv2.waitKey(0)
if k == 27:
    cv2.destroyAllWindows()
elif k == ord('s') or k == ord('S'):
    cv2.imwrite("C:/Users/shouw/Desktop/tmp/help/change.png",res)
    cv2.destroyAllWindows()
